package com.uflower.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.uflower.common.utils.PageUtils;
import com.uflower.order.entity.OrderEntity;
import com.uflower.order.vo.OrderCenterOrderVo;
import com.uflower.order.vo.OrderConfirmVo;
import com.uflower.order.vo.OrderSubmitResultVo;
import com.uflower.order.vo.OrderSubmitVo;
import com.uflower.order.vo.OrderVo;

import java.util.List;
import java.util.Map;

/**
 * 订单
 *
 * @author bridge
 * @email bridgezrq@163.com
 * @date 2022-01-15 14:59:31
 */
public interface OrderService extends IService<OrderEntity> {

   

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder();

    OrderSubmitResultVo submitOrder(OrderSubmitVo submitVo);

    List<OrderEntity> getOrdersById(Long userId);
    OrderEntity getOrderByOrderSn(String orderSn);

    void closeOrder(OrderEntity orderEntity);
    public void closeOrder(String orderSn);
    List<OrderCenterOrderVo> queryCurrentUserOrders(Integer status);
}

